package com.xuecheng.teaching.controller;

import com.xuecheng.commons.model.dto.ReplyCommentDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xuecheng.teaching.service.CommentReplyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author itheima
 */
@Slf4j
@RestController
public class CommentReplyController {

    @Autowired
    private CommentReplyService  commentReplyService;

    //教育机构---课程评论回复
    @PostMapping("/course-comment-reply")
    public ResponseResult commentReply(@RequestBody ReplyCommentDto dto){
        //调用service
        return commentReplyService.commentReply(dto);
    }

}
